import request from '@/utils/request'
import {projectApiUrls} from '../config'
/**
 * 维保期项目列表
 * @param parameter
 */
export function getMaintenanceList(parameter){
  return request({
    url: projectApiUrls+'/project/maintenance/management/query-list/list',
    method: 'post',
    data: parameter
  })
}


/**
 * 维保期项目统计
 * @param
 */
export function getMaintenanceTotal(data){
  return request({
    url: projectApiUrls+'/project/maintenance/management/query-list-total/list',
    method: 'post',
    data
  })
}


/**
 * 根据维保id查询 维保期项目记录列表
 * @param parameter
 */
export function getMaintainRecordList(parameter){
  return request({
    url: projectApiUrls+'/project/maintenance/management/query-record-list',
    method: 'get',
    params: parameter
  })
}

/**
 * 确认维保期
 * @param parameter
 */
export function configMaintain(parameter){
  return request({
    url: projectApiUrls+'/project/maintenance/management/confirm-maintenanceInfo',
    method: 'post',
    data: parameter
  })
}

/**
 * 维保期延长申请
 * @param parameter
 */
export function delayMaintainApply(parameter){
  return request({
    url: projectApiUrls+'/project/maintenance/management/delay-maintenanceInfo',
    method: 'post',
    data: parameter
  })
}




/**
 * 新增维保期项目记录
 * @param data
 */
export function addMaintainRecord(data){
  return request({
    url: projectApiUrls+'/project/maintenance/management/add-record',
    method: 'post',
    data: data
  })
}

/**
 * 删除维保期项目记录
 * @param data
 */
export function deleteMaintainRecord(data){
  return request({
    url: projectApiUrls+'/project/maintenance/management/delete-record',
    method: 'post',
    data: data
  })
}


/**
 * 查询维保期详情
 * @param data
 */
export function maintainRecordDeatails(data){
  return request({
    url: projectApiUrls+'/project/maintenance/management/query-detail',
    method: 'get',
    params: data
  })
}
/**
 * 查询维保期记录详情
 * @param data
 */
export function maintainOneDeatails(data){
  return request({
    url: projectApiUrls+'/project/maintenance/management/query-record-detail',
    method: 'get',
    params: data
  })
}





/**
 * 查询维保期延长申请详情
 * @param data
 */
export function maintainDelayDeatails(data){
  return request({
    url: projectApiUrls+'/project/maintenance/management/query-delay-detail',
    method: 'get',
    params: data
  })
}




